package com.example.makerspace.controller.expert;

import com.example.makerspace.dto.PageRequest;
import com.example.makerspace.dto.Result;
import com.example.makerspace.service.ExpertService;
import com.example.makerspace.vo.ExpertTaskSocreVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(value = "/api/expertScreen")
@Api(tags = "专家大屏模块")
public class ExpertScreenController {
    @Resource
    private ExpertService expertService;

    @ApiOperation(value="任务总览接口",notes ="任务总览接口说明")
    @GetMapping("/showTaskList")
    public ExpertTaskSocreVO showTaskList(){
        return  expertService.showTaskList();
    }

    @ApiOperation(value="专家总览接口",notes ="专家总览接口说明")
    @GetMapping("/expertList")
    public List<List<String>> expertList(){
        return  expertService.expertList();
    }

    @ApiOperation(value="打分总览接口",notes ="打分总览接口说明")
    @GetMapping("/scoreList")
    public List<List<String>> scoreList(){
        return  expertService.scoreList();
    }

    @ApiOperation(value="成果总览接口",notes ="成果总览接口说明")
    @GetMapping("/outcomeList")
    public List<List<String>> outcomeList(){
        return  expertService.outcomeList();
    }

    @ApiOperation(value="总览数据接口",notes ="总览数据接口说明")
    @GetMapping("/OverviewDate")
    public  List<Integer> OverviewDate(){
        return  expertService.OverviewDate();
    }

    @ApiOperation(value="整体评审进度接口",notes ="整体评审进度接口说明")
    @GetMapping("/reviewProgress")
    public  Result reviewProgress(){
        return  expertService.reviewProgress();
    }




    @ApiOperation(value="任务总览接口v2",notes ="任务总览接口说明")
    @GetMapping("/v2/showTaskList")
    public ExpertTaskSocreVO showTaskListv2(){
        return  expertService.showTaskListv2();
    }

    @ApiOperation(value="专家总览接口v2",notes ="专家总览接口说明")
    @GetMapping("/v2/expertList")
    public List<List<String>> expertListv2(){
        return  expertService.expertListv2();
    }

    @ApiOperation(value="打分总览接口",notes ="打分总览接口说明")
    @GetMapping("v2/scoreList")
    public List<List<String>> scoreListv2(){
        return  expertService.scoreListv2();
    }

    @ApiOperation(value="成果总览接口",notes ="成果总览接口说明")
    @GetMapping("/v2/outcomeList")
    public List<List<String>> outcomeListv2(){
        return  expertService.outcomeListv2();
    }

    @ApiOperation(value="总览数据接口",notes ="总览数据接口说明")
    @GetMapping("/v2/OverviewDate")
    public  List<Integer> OverviewDatev2(){
        return  expertService.OverviewDatev2();
    }

    @ApiOperation(value="整体评审进度接口",notes ="整体评审进度接口说明")
    @GetMapping("/v2/reviewProgress")
    public  Result reviewProgressv2(){
        return  expertService.reviewProgressv2();
    }


   @GetMapping("/showExpertScore")
    public  Result showExpertScore(@RequestParam("id")Integer id){
        return  expertService.showExpertScore(id);
   }


}
